/* device-frame.css */

/* 设备边框容器 */
.device-frame {
  position: relative;
  margin: 20px auto;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* iPhone 14 边框 */
.device-frame.iphone-14 {
  width: 391px; /* 375px + 边框 */
  height: 852px; /* 812px + 边框 */
}

/* iPhone 14 屏幕区域 */
.device-frame.iphone-14 .device-screen {
  width: 375px;
  height: 812px;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

/* 刘海设计 */
.device-frame.iphone-14 .device-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 1000;
}

/* Home指示器 */
.device-frame.iphone-14 .device-screen::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  z-index: 1000;
}

/* 边框控制按钮 */
.frame-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.frame-toggle:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

/* 页面内容区域 */
.page-content {
  width: 100%;
  height: 100%;
  background: #ffffff;
  position: relative;
  overflow-y: auto;
  padding-top: 44px; /* 为状态栏留出空间 */
  padding-bottom: 34px; /* 为Home指示器留出空间 */
}

/* 状态栏区域 */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: transparent;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.status-bar .time {
  font-weight: 700;
}

.status-bar .battery-wifi {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 移动端隐藏边框 */
@media (max-width: 480px) {
  .device-frame {
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    width: 100% !important;
    height: 100vh !important;
  }
  
  .device-frame .device-screen {
    width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }
  
  .device-frame .device-screen::before,
  .device-frame .device-screen::after {
    display: none;
  }
  
  .frame-toggle {
    display: none;
  }
  
  .page-content {
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .status-bar {
    display: none;
  }
}

/* 桌面端隐藏边框选项 */
.device-frame.frame-hidden {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  width: 375px;
  height: 812px;
}

.device-frame.frame-hidden .device-screen {
  border-radius: 0;
}

.device-frame.frame-hidden .device-screen::before,
.device-frame.frame-hidden .device-screen::after {
  display: none;
}

.device-frame.frame-hidden .page-content {
  padding-top: 0;
  padding-bottom: 0;
}

.device-frame.frame-hidden .status-bar {
  display: none;
} 